
package webservices.bizHangYi;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for IO_RelationType.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="IO_RelationType">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="Self"/>
 *     &lt;enumeration value="Parent"/>
 *     &lt;enumeration value="Mate"/>
 *     &lt;enumeration value="Children"/>
 *     &lt;enumeration value="Other"/>
 *     &lt;enumeration value="Legal"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "IO_RelationType")
@XmlEnum
public enum IORelationType {

    @XmlEnumValue("Self")
    SELF("Self"),
    @XmlEnumValue("Parent")
    PARENT("Parent"),
    @XmlEnumValue("Mate")
    MATE("Mate"),
    @XmlEnumValue("Children")
    CHILDREN("Children"),
    @XmlEnumValue("Other")
    OTHER("Other"),
    @XmlEnumValue("Legal")
    LEGAL("Legal");
    private final String value;

    IORelationType(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static IORelationType fromValue(String v) {
        for (IORelationType c: IORelationType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
